﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="CoolERP_Web.User.Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>ERP管理平台</title>
    <link href="../Styles/Site.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../Scripts/lhgdialog/lhgcore.min.js" type="text/javascript"></script>
    <script src="../Scripts/lhgdialog/lhgdialog.js" type="text/javascript"></script>
<script type="text/javascript" >
    function reinitIframe(obj,h) {
        try {
            var bHeight = obj.contentWindow.document.body.scrollHeight;
            var dHeight = obj.contentWindow.document.documentElement.scrollHeight;
            var height = Math.max(bHeight, dHeight);
            if (height < h)
                obj.height = h;
            else
                obj.height = height;
        } catch (ex) { }
    }
    window.setInterval("reinitIframe()", 1);
    function selMenu(obj) {
        if ($(obj).hasClass("divMenu_T1")) {
            $(".divMenu_T2").each(function () {
                $(this).attr("class", "divMenu_T1");
                $(this).next().attr("class", "divMenu_M1");
            });
            $(obj).attr("class", "divMenu_T2");
            $(obj).next().attr("class", "divMenu_M2");
        }
        else {
            $(obj).attr("class", "divMenu_T1");
            $(obj).next().attr("class", "divMenu_M1");
        }
    }
    function showModify() {
        dg = new J.dialog({ id: 'select', title: '修改密码', page: 'ModifyPwd.aspx', iconTitle: false, cover: true, btnBar: false, rang: true, autoSize: true, width: 350 });
        dg.ShowDialog();
    }
</script>
<style type="text/css">
.divMenu_T1 {height:26px;line-height:27px;overflow:hidden;padding:0 10px;background:url(../Images/Common/menu_t.gif) no-repeat #F4F8FB;cursor:pointer}
.divMenu_T1 h1{color:#43860c;font-size:14px;padding-left:25px;margin-top:2px;background:url(../Images/Icon/menu_icon.gif) 2px 6px no-repeat;}
.divMenu_T2 {height:30px;line-height:31px;overflow:hidden;padding:0 10px;background:url(../Images/Common/menu_t.gif) no-repeat #F4F8FB;cursor:pointer}
.divMenu_T2 h1{color:#43860c;font-size:14px;padding-left:25px;margin:0;background:url(../Images/Icon/menu_icon.gif) 2px 8px no-repeat;}
.divMenu_M1 {display:none;}
.divMenu_M2 {border-left:1px solid #B1E68A;overflow:hidden;border-right:1px solid #B1E68A;padding:8px;}
.divMenu_M2 a{text-decoration:none;margin:5px}
.divMenu_B {width:156px;background:url(../Images/Common/menu_b.gif) no-repeat;height:4px;overflow:hidden;margin-bottom:10px;}
</style>
</head>
<body>
    <form id="form1" runat="server">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td height="9" style="line-height: 9px; background-image: url(../images/Common/main_04.gif)">
                <table align=left border="0" cellspacing="0" cellpadding="0">
                    <tr><td style="background:url(../images/Common/main_01.gif) no-repeat; width:97px; height:9px"></td></tr>
                </table>
            </td>
        </tr>
        <tr>
            <td height="47" background="../Images/Common/main_09.gif">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="38" height="47" background="../Images/Common/main_06.gif"></td>
                        <td width="59">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr><td height="29" background="../Images/Common/main_07.png"></td></tr>
                                <tr><td height="18" background="../Images/Common/main_14.gif"><%=this.currentUser.UserName %></td></tr>
                            </table>
                        </td>
                        <td width="155" background="../Images/Common/main_08.png"></td>
                        <td><a href="javascript:showModify();">修改密码</a>&nbsp;&nbsp;&nbsp;&nbsp;
                            <asp:LinkButton ID="lnkbExit" runat="server" OnClick="lnkbExit_Click" OnClientClick="return confirm('确定要退出吗？');">退出</asp:LinkButton></td>
                        <td width="300" style="background:url(../Images/Common/main_11.gif) no-repeat; padding-left:20px;  padding-top:5px">
                            <script src="../Scripts/time.js" type="text/javascript"></script>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td style="height: 5px; background: url(../Images/Common/main_18.gif) repeat-x">
                <div style="background:url(../Images/Common/main_16.gif) no-repeat; width:180px; height:5px;"></div>
            </td>
        </tr>
    </table>
    <table width=100% cellpadding=0 cellspacing=0 border=0>
        <tr>
            <td style="width:177px" valign=top>
                <div style="background-image:url(../Images/Common/main_21.gif); height:25px"></div>
                <div style="background: url(../Images/Common/main_23.gif) repeat-x; height:80px; border-right:solid 1px #b0c23d">
                    <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr align="center" height="45">
                            <td><img src="../Images/Common/main_26.gif" width="40" height="40" border="0" /></td>
                            <td><img src="../Images/Common/main_28.gif" width="40" height="40" border="0" /></td>
                            <td><img src="../Images/Common/main_31.gif" width="40" height="40" border="0" /></td>
                        </tr>
                        <tr>
                            <td height="25"><a href="RoleManage.aspx" target="mainBody" class="aTxt">角色权限</a></td>
                            <td><a href="Organization.aspx" target="mainBody" class="aTxt">组织管理</a></td>
                            <td><a href="SystemParam_Query.aspx" target="mainBody" class="aTxt">参数定义</a></td>
                        </tr>
                    </table>
                </div>
                <div style="line-height: 4px; background: url(../Images/Common/main_38.gif)">&nbsp;</div>
                <div style="padding: 10px; height: 100%; background-color: white; border-right:solid 1px #b0c23d; border-bottom:solid 1px #b0c23d">
                    <asp:Repeater ID="Repeater1" runat="server" OnItemDataBound="Repeater1_ItemDataBound">
                    <ItemTemplate><div class=divMenu_T1 onclick="selMenu(this)"><h1><%# Eval("Name") %></h1></div>
                    <div class=divMenu_M1><asp:Repeater ID="repChild" runat="server">                    
                    <ItemTemplate><a href="<%# Eval("Url") %>" target=mainBody><%# Eval("Name") %></a><br>
                    </ItemTemplate>
                    </asp:Repeater>
                    </div><div class=divMenu_B></div></ItemTemplate></asp:Repeater>
                </div>            
            </td>
            <td align=left valign=top><iframe src ="" frameborder="0" marginheight="0" marginwidth="0" scrolling="auto" onload="reinitIframe(this,600)" id="mainBody" name="mainBody" width="100%"/></td>
        </tr>
    </table>
    </form>
</body>
</html>
